

#ifndef __TYPEDEF_H__
#define __TYPEDEF_H__

    /* 精确宽度整数类型 */
typedef   signed          char int8;
typedef   signed short     int int16;
typedef   signed           int int32;
typedef unsigned          char uint8;
typedef unsigned short     int uint16;
typedef unsigned           int uint32;

    /* 精确宽度有符号整数类型的最小值 */
#define INT8_MIN                   -128
#define INT16_MIN                -32768
#define INT32_MIN          (~0x7fffffff)   /* -2147483648 is unsigned */

    /* 精确宽度有符号整数类型的最大值 */
#define INT8_MAX                    127
#define INT16_MAX                 32767
#define INT32_MAX            2147483647

    /*精确宽度无符号整数类型的最大值 */
#define UINT8_MAX                   255
#define UINT16_MAX                65535
#define UINT32_MAX           4294967295U


#define TRUE    1U
#define FALSE   0U
        

//typedef enum { FALSE = 0, TRUE = 1 } bool;


#endif /* __TYPEDEF_H__ */    